home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.5 Complementary Applications 2004 May / SGI IRIX 6.5 Complementary Applications 2004 May.iso / dist / OpenOffice.idb / usr / OpenOffice / help / en / scalc.jar / text / scalc / 01 / 04060101.xml < prev    next >
Encoding:
Extensible Markup Language  |  2002-01-24  |  34.6 KB  |  371 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Database Functions</title><meta name="filename" content="text/scalc/01/04060101"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:1.499cm;}
  8.         span.Tabelle1B{
  9.                 width:16.501cm;}
  10.         tr.Tabelle11{
  11.                 }
  12.         td.Tabelle1A1{
  13.                 }
  14.         table.Tabelle2{
  15.                 }
  16.         span.Tabelle2A{
  17.                 width:3cm;}
  18.         td.Tabelle2A1{
  19.                 }
  20.         td.Tabelle2F1{
  21.                 border-width:0.002cm; border-style:solid; border-color:#000000;}
  22.         td.Tabelle2A2{
  23.                 }
  24.         td.Tabelle2F2{
  25.                 }
  26.         p.P1{
  27.                 }
  28.         span.T1{
  29.                 font-weight:bold;}
  30.         span.fr1{
  31.                 }
  32.         </style></head><body>
  33.    
  34.    
  35.    <p class="P1"/>
  36.    <p class="Head1"><help:key-word value="AutoPilot: Functions; database" tag="kw66856_2" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="functions; database" tag="kw66856_15" xmlns:help="http://openoffice.org/2000/help"/><help:key-word value="database; functions in %PRODUCTNAME Calc" tag="kw66856_14" xmlns:help="http://openoffice.org/2000/help"/>Database Functions</p>
  37.    <p class="Paragraph"><help:to-be-embedded Eid="datenbanktext" xmlns:help="http://openoffice.org/2000/help">This section deals with functions used with row data that has been merged into records.</help:to-be-embedded> The following functions are covered: <help:link Id="66856" Eid="dbanzahl" xmlns:help="http://openoffice.org/2000/help">DCOUNT</help:link>, <help:link Id="66856" Eid="dbanzahl2" xmlns:help="http://openoffice.org/2000/help">DCOUNTA</help:link>, <help:link Id="66856" Eid="dbauszug" xmlns:help="http://openoffice.org/2000/help">DGET</help:link>, <help:link Id="66856" Eid="dbmax" xmlns:help="http://openoffice.org/2000/help">DMAX</help:link>, <help:link Id="66856" Eid="dbmin" xmlns:help="http://openoffice.org/2000/help">DMIN</help:link>, <help:link Id="66856" Eid="dbmittelwert" xmlns:help="http://openoffice.org/2000/help">DAVERAGE</help:link>, <help:link Id="66856" Eid="dbprodukt" xmlns:help="http://openoffice.org/2000/help">DPRODUCT</help:link>, <help:link Id="66856" Eid="dbstdabw" xmlns:help="http://openoffice.org/2000/help">DSTDEV</help:link>, <help:link Id="66856" Eid="dbstdabwn" xmlns:help="http://openoffice.org/2000/help">DSTDEVP</help:link>, <help:link Id="66856" Eid="dbsumme" xmlns:help="http://openoffice.org/2000/help">DSUM</help:link>, <help:link Id="66856" Eid="dbvarianz" xmlns:help="http://openoffice.org/2000/help">DVAR</help:link>, <help:link Id="66856" Eid="dbvarianzen" xmlns:help="http://openoffice.org/2000/help">DVARP</help:link>. They are described below in the order indicated. Call page two of AutoPilot: Functions to compare the function descriptions.</p>
  38.    <help:popup Id="66774" Eid="eikada" xmlns:help="http://openoffice.org/2000/help"><help:embedded Id="66778" Eid="wie"/></help:popup>
  39.    <table><tr class="Tabelle11"><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  40.        <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p>
  41.       </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  42.        <p class="Paragraph">The <span class="T1">Database</span> category may be confused with a database integrated in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname>. However, there is no connection between a database in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> and the <span class="T1">Database</span> category in <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc.</p>
  43.       </span></th></tr></table>
  44.    <p class="Paragraph"/>
  45.    <p class="Paragraph">Look at the example. The range A1:E10 lists the children invited to Joe's birthday. The following information is given for each entry: column A shows the name, B the grade, then age in years, distance to school in meters and weight in kilograms.</p>
  46.    <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><td class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  47.       <p class="TableHead"/>
  48.      </span></td><td class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  49.       <p class="TableHead">A</p>
  50.      </span></td><td class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  51.       <p class="TableHead">B</p>
  52.      </span></td><td class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  53.       <p class="TableHead">C</p>
  54.      </span></td><td class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  55.       <p class="TableHead">D</p>
  56.      </span></td><td class="Tabelle2F1" style="text-align:left;"><span class="Tabelle2A">
  57.       <p class="TableHead">E</p>
  58.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  59.       <p class="TextInTable">1</p>
  60.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  61.       <p class="TextInTable">Name</p>
  62.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  63.       <p class="TextInTable">Grade</p>
  64.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  65.       <p class="TextInTable">Age</p>
  66.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  67.       <p class="TextInTable">Distance to School</p>
  68.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  69.       <p class="TextInTable">Weight</p>
  70.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  71.       <p class="TextInTable">2</p>
  72.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  73.       <p class="TextInTable">Andy</p>
  74.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  75.       <p class="TextInTable">3</p>
  76.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  77.       <p class="TextInTable">9</p>
  78.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  79.       <p class="TextInTable">150</p>
  80.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  81.       <p class="TextInTable">40</p>
  82.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  83.       <p class="TextInTable">3</p>
  84.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  85.       <p class="TextInTable">Betty</p>
  86.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  87.       <p class="TextInTable">4</p>
  88.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  89.       <p class="TextInTable">10</p>
  90.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  91.       <p class="TextInTable">1000</p>
  92.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  93.       <p class="TextInTable">42</p>
  94.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  95.       <p class="TextInTable">4</p>
  96.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  97.       <p class="TextInTable">Charles</p>
  98.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  99.       <p class="TextInTable">3</p>
  100.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  101.       <p class="TextInTable">10</p>
  102.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  103.       <p class="TextInTable">300</p>
  104.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  105.       <p class="TextInTable">51</p>
  106.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  107.       <p class="TextInTable">5</p>
  108.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  109.       <p class="TextInTable">Daniel</p>
  110.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  111.       <p class="TextInTable">5</p>
  112.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  113.       <p class="TextInTable">11</p>
  114.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  115.       <p class="TextInTable">1200</p>
  116.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  117.       <p class="TextInTable">48</p>
  118.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  119.       <p class="TextInTable">6</p>
  120.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  121.       <p class="TextInTable">Eva</p>
  122.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  123.       <p class="TextInTable">2</p>
  124.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  125.       <p class="TextInTable">8</p>
  126.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  127.       <p class="TextInTable">650</p>
  128.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  129.       <p class="TextInTable">33</p>
  130.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  131.       <p class="TextInTable">7</p>
  132.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  133.       <p class="TextInTable">Frank</p>
  134.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  135.       <p class="TextInTable">2</p>
  136.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  137.       <p class="TextInTable">7</p>
  138.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  139.       <p class="TextInTable">300</p>
  140.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  141.       <p class="TextInTable">42</p>
  142.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  143.       <p class="TextInTable">8</p>
  144.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  145.       <p class="TextInTable">Greta</p>
  146.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  147.       <p class="TextInTable">1</p>
  148.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  149.       <p class="TextInTable">7</p>
  150.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  151.       <p class="TextInTable">200</p>
  152.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  153.       <p class="TextInTable">36</p>
  154.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  155.       <p class="TextInTable">9</p>
  156.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  157.       <p class="TextInTable">Harry</p>
  158.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  159.       <p class="TextInTable">3</p>
  160.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  161.       <p class="TextInTable">9</p>
  162.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  163.       <p class="TextInTable">1200</p>
  164.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  165.       <p class="TextInTable">44</p>
  166.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  167.       <p class="TextInTable">10</p>
  168.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  169.       <p class="TextInTable">Irene</p>
  170.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  171.       <p class="TextInTable">2</p>
  172.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  173.       <p class="TextInTable">8</p>
  174.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  175.       <p class="TextInTable">1000</p>
  176.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  177.       <p class="TextInTable">42</p>
  178.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  179.       <p class="TextInTable">11</p>
  180.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  181.       <p class="TextInTable"/>
  182.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  183.       <p class="TextInTable"/>
  184.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  185.       <p class="TextInTable"/>
  186.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  187.       <p class="TextInTable"/>
  188.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  189.       <p class="TextInTable"/>
  190.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  191.       <p class="TextInTable">12</p>
  192.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  193.       <p class="TextInTable"/>
  194.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  195.       <p class="TextInTable"/>
  196.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  197.       <p class="TextInTable"/>
  198.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  199.       <p class="TextInTable"/>
  200.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  201.       <p class="TextInTable"/>
  202.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  203.       <p class="TextInTable">13</p>
  204.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  205.       <p class="TextInTable">Name</p>
  206.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  207.       <p class="TextInTable">Grade</p>
  208.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  209.       <p class="TextInTable">Age</p>
  210.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  211.       <p class="TextInTable">Distance to School</p>
  212.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  213.       <p class="TextInTable">Weight</p>
  214.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  215.       <p class="TextInTable">14</p>
  216.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  217.       <p class="TextInTable"/>
  218.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  219.       <p class="TextInTable"/>
  220.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  221.       <p class="TextInTable"/>
  222.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  223.       <p class="TextInTable">>600</p>
  224.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  225.       <p class="TextInTable"/>
  226.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  227.       <p class="TextInTable">15</p>
  228.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  229.       <p class="TextInTable"/>
  230.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  231.       <p class="TextInTable"/>
  232.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  233.       <p class="TextInTable"/>
  234.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  235.       <p class="TextInTable"/>
  236.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  237.       <p class="TextInTable"/>
  238.      </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  239.       <p class="TextInTable">16</p>
  240.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  241.       <p class="TextInTable">DCOUNT</p>
  242.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  243.       <p class="TextInTable">5</p>
  244.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  245.       <p class="TextInTable"/>
  246.      </span></td><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  247.       <p class="TextInTable"/>
  248.      </span></td><td class="Tabelle2F2" style="text-align:left;"><span class="Tabelle2A">
  249.       <p class="TextInTable"/>
  250.      </span></td></tr></table>
  251.    <p class="Paragraph"/>
  252.    <p class="Paragraph">The formula in cell B16 is =DCOUNT(A1:E10;A1:E10;A13:E14)</p>
  253.    <p class="Paragraph">Following are the parameter definitions for all database functions:</p>
  254.    <p class="Paragraph"><span class="T1">Database</span> is the cell range defining the database.</p>
  255.    <p class="Paragraph"><span class="T1">Database Field</span> indicates the database field used for further reference if such referencing is possible in a database function. To reference a column by means of the column header name, place quotation marks around the latter.</p>
  256.    <p class="Paragraph"><span class="T1">Search Criteria</span> is the cell range containing search criteria. If you write several criteria in one row they are connected by AND. If you write the criteria in different rows they are connected by OR. Empty cells in the search criteria range will be ignored.</p>
  257.    <p class="Paragraph">Choose <help:link Id="66267" xmlns:help="http://openoffice.org/2000/help">Tools - Options - Spreadsheet - Calculate</help:link> to define how <help:productname xmlns:help="http://openoffice.org/2000/help">%PRODUCTNAME</help:productname> Calc is to act when searching for identical entries.</p>
  258.    <p class="Head2"><help:help-id value="HID_FUNC_DBANZAHL" xmlns:help="http://openoffice.org/2000/help"/><a name="dbanzahl"/>DCOUNT <help:key-word value="DCOUNT" tag="kw66856_13" xmlns:help="http://openoffice.org/2000/help"/></p>
  259.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DCOUNT counts the number of rows (records) in a database that match the specified search criteria and contain numerical values.</help:help-text></p>
  260.    <p class="Head3">Syntax</p>
  261.    <p class="Paragraph">DCOUNT(Database; Database Field; Search Criteria)</p>
  262.    <p class="Paragraph">For the median parameter you can enter the entire database or the number zero, but the parameter cannot be empty.</p>
  263.    <p class="Head3">Example</p>
  264.    <p class="Paragraph">In the example above, we want to know how many children have to travel more than 600 meters to school. The result is to be stored in cell B16. Set the cursor in cell B16. Enter the formula =DCOUNT(A1:E10;A1:E10;A13:E14) in B16. Alternatively enter =DCOUNT(A1:E10;0;A13:E14) (see syntax note above). The AutoPilot: Functions supports range entries.</p>
  265.    <p class="Paragraph"><span class="T1">Database</span> is the range of data to be evaluated, including its headers: in this case A1:E10. <span class="T1">Database Field</span> specifies the column for the search criteria: in this case, Distance to School (meters). <span class="T1">Search Criteria</span> is the range where you can enter the search parameters: in this case, A13:E14.</p>
  266.    <p class="Paragraph">For example, to learn how many children in second grade are over 7 years of age, delete the entry >600 in cell D14 and enter "2" in cell B14 under Grade, and enter >7 in cell C14 to the right. The result is 2. Two children are in second grade and over 7 years of age. As both criteria are in the same row they are connected by AND.</p>
  267.    <help:embedded Id="65630" Eid="siehe" xmlns:help="http://openoffice.org/2000/help"/>
  268.    <p class="Paragraph"><help:link Id="66824" Eid="anzahlleerezellen" xmlns:help="http://openoffice.org/2000/help">COUNTBLANK</help:link>, <help:link Id="66824" Eid="zaehlenwenn" xmlns:help="http://openoffice.org/2000/help">COUNTIF</help:link>.</p>
  269.    <p class="Head2"><help:help-id value="HID_FUNC_DBANZAHL2" xmlns:help="http://openoffice.org/2000/help"/><a name="dbanzahl2"/>DCOUNTA <help:key-word value="DCOUNTA" tag="kw66856_12" xmlns:help="http://openoffice.org/2000/help"/></p>
  270.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DCOUNTA counts the number of rows (records) in a database that match the specified search conditions, and contain numeric or alphanumeric values.</help:help-text></p>
  271.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  272.    <p class="Head3">Syntax</p>
  273.    <p class="Paragraph">DCOUNTA(Database; Database Field; Search Criteria)</p>
  274.    <p class="Head3">Example</p>
  275.    <p class="Paragraph">In the example above, you can search for the number of children whose name starts with an E or a subsequent letter. Edit the formula in B16 by inserting an A after the function name DCOUNT. Delete the old search criteria and enter >=E under <span class="T1">Name</span> in field A14. The result is 5. If you now delete all number values for Greta in row 8, the result changes to 4. Row 8 is no longer included in the count because it does not contain any values (the name Greta is text, not a value).</p>
  276.    <help:embedded Id="65630" Eid="siehe" xmlns:help="http://openoffice.org/2000/help"/>
  277.    <p class="Paragraph"><help:link Id="66824" Eid="anzahlleerezellen" xmlns:help="http://openoffice.org/2000/help">COUNTBLANK</help:link>, <help:link Id="66824" Eid="zaehlenwenn" xmlns:help="http://openoffice.org/2000/help">COUNTIF</help:link>.</p>
  278.    <p class="Head2"><help:help-id value="HID_FUNC_DBAUSZUG" xmlns:help="http://openoffice.org/2000/help"/><a name="dbauszug"/>DGET <help:key-word value="DGET" tag="kw66856_11" xmlns:help="http://openoffice.org/2000/help"/></p>
  279.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DGET returns the contents of the referenced cell in a database which matches the specified search criteria.</help:help-text> In case of an error, the function returns either #VALUE! for no row found, or Err502 for more than one cell found.</p>
  280.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  281.    <p class="Head3">Syntax</p>
  282.    <p class="Paragraph">DGET(Database; Database Field; Search Criteria)</p>
  283.    <p class="Head3">Example</p>
  284.    <p class="Paragraph">In the above example we want to determine what grade a child is in whose name we entered in cell A14. The formula is again entered in cell B16 and differs slightly from the earlier examples as only one column (one database field) can be entered for <span class="T1">Database Field</span>. Enter the following formula:</p>
  285.    <p class="Paragraph">=DGET(A1:E10;"Grade";A13:E14)</p>
  286.    <p class="Paragraph">Now enter the name Frank in A14, and you will see the result 2. Frank is in second grade. Enter "Age" instead of "Grade" and you will get Frank's age.</p>
  287.    <p class="Paragraph">Or enter a value in cell C14 only (e.g. 11) and delete the other entries in this row. Edit the formula in B16 as follows:</p>
  288.    <p class="Paragraph">=DGET(A1:E10;"Name";A13:E14)</p>
  289.    <p class="Paragraph">Instead of the grade, the name is queried. The answer appears at once: Daniel is the only child aged 11.</p>
  290.    <p class="Head2"><help:help-id value="HID_FUNC_DBMAX" xmlns:help="http://openoffice.org/2000/help"/><a name="dbmax"/>DMAX <help:key-word value="DMAX" tag="kw66856_10" xmlns:help="http://openoffice.org/2000/help"/></p>
  291.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DMAX returns the maximum content of a cell (field) in a database (all records) that matches the specified search conditions.</help:help-text></p>
  292.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  293.    <p class="Head3">Syntax</p>
  294.    <p class="Paragraph">DMAX(Database; Database Field; Search Criteria)</p>
  295.    <p class="Head3">Example</p>
  296.    <p class="Paragraph">How much does the heaviest child in each grade weigh? Enter the following formula in B16:</p>
  297.    <p class="Paragraph">=DMAX(A1:E10;"Weight";A13:E14)</p>
  298.    <p class="Paragraph">Now, under 'Grade', enter 1, 2, 3, etc. one after the other. After entering a grade number the weight of the heaviest child in that grade appears.</p>
  299.    <p class="Head2"><help:help-id value="HID_FUNC_DBMIN" xmlns:help="http://openoffice.org/2000/help"/><a name="dbmin"/><help:key-word value="DMIN" tag="kw66856_1" xmlns:help="http://openoffice.org/2000/help"/>DMIN</p>
  300.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DMIN returns the minimum content of a cell (field) in a database (all records) that matches the specified search criteria.</help:help-text></p>
  301.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  302.    <p class="Head3">Syntax</p>
  303.    <p class="Paragraph">DMIN(Database; Database Field; Search Criteria)</p>
  304.    <p class="Head3">Example</p>
  305.    <p class="Paragraph">What is the shortest distance to school for the children in each grade? Enter the following formula in B16:</p>
  306.    <p class="Paragraph">=DMIN(A1:E10;"Distance to School";A13:E14)</p>
  307.    <p class="Paragraph">In row 14, under Grade, enter 1, 2, 3, etc. one after the other. The shortest distance to school for each grade appears.</p>
  308.    <p class="Head2"><help:help-id value="HID_FUNC_DBMITTELWERT" xmlns:help="http://openoffice.org/2000/help"/><a name="dbmittelwert"/>DAVERAGE <help:key-word value="DAVERAGE" tag="kw66856_9" xmlns:help="http://openoffice.org/2000/help"/></p>
  309.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DAVERAGE returns the average of the values of all cells (fields) in all rows (database records) that match the specified search criteria.</help:help-text></p>
  310.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  311.    <p class="Head3">Syntax</p>
  312.    <p class="Paragraph">DAVERAGE(Database; Database Field; Search Criteria)</p>
  313.    <p class="Head3">Example</p>
  314.    <p class="Paragraph">What is the average weight of all children of the same age? Enter the following formula in B16:</p>
  315.    <p class="Paragraph">=DAVERAGE(A1:E10;"Weight";A13:E14)</p>
  316.    <p class="Paragraph">In row 14, under Age, enter 7, 8, 9, etc. one after the other. The average weight of all children of the same age appears.</p>
  317.    <p class="Head2"><help:help-id value="HID_FUNC_DBPRODUKT" xmlns:help="http://openoffice.org/2000/help"/><a name="dbprodukt"/>DPRODUCT <help:key-word value="DPRODUCT" tag="kw66856_8" xmlns:help="http://openoffice.org/2000/help"/></p>
  318.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DPRODUCT multiplies all cells of a data range where the cell contents match the search criteria.</help:help-text></p>
  319.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  320.    <p class="Head3">Syntax</p>
  321.    <p class="Paragraph">DPRODUCT(Database; Database Field; Search Criteria)</p>
  322.    <p class="Head3">Example</p>
  323.    <p class="Paragraph">For the birthday party example above, there is no meaningful application of this function.</p>
  324.    <p class="Head2"><help:help-id value="HID_FUNC_DBSTDABW" xmlns:help="http://openoffice.org/2000/help"/><a name="dbstdabw"/>DSTDEV <help:key-word value="DSTDEV" tag="kw66856_7" xmlns:help="http://openoffice.org/2000/help"/></p>
  325.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DSTDEV calculates the standard deviation of a population based on a sample, using the numbers in a database column that match the given conditions.</help:help-text> The records are treated as a sample of data. That is "our" children represent a cross section of all children (a representative result can not be obtained from a sample of less than one thousand).</p>
  326.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  327.    <p class="Head3">Syntax</p>
  328.    <p class="Paragraph">DSTDEV(Database; Database Field; Search Criteria)</p>
  329.    <p class="Head3">Example</p>
  330.    <p class="Paragraph">What is the standard deviation of the weight for all children of the same age? Enter the following formula in B16:</p>
  331.    <p class="Paragraph">=DSTDEV(A1:E10;"Weight";A13:E14)</p>
  332.    <p class="Paragraph">In row 14, under Age, enter 7, 8, 9, etc. one after the other. The result shown is the standard deviation of the weight of all children of this age.</p>
  333.    <p class="Head2"><help:help-id value="HID_FUNC_DBSTDABWN" xmlns:help="http://openoffice.org/2000/help"/><a name="dbstdabwn"/>DSTDEVP <help:key-word value="DSTDEVP" tag="kw66856_6" xmlns:help="http://openoffice.org/2000/help"/></p>
  334.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DSTDEVP calculates the standard deviation of a population based on all cells of a data range which match the search criteria.</help:help-text>The records are treated as the whole population. We, therefore, only want to make a statement about "our" children, not about others whose data we do not have.</p>
  335.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  336.    <p class="Head3">Syntax</p>
  337.    <p class="Paragraph">DSTDEVP(Database; Database Field; Search Criteria)</p>
  338.    <p class="Head3">Example</p>
  339.    <p class="Paragraph">What is the standard deviation of the weight for all children of the same age at Joe's birthday party? Enter the following formula in B16:</p>
  340.    <p class="Paragraph">=DSTDEVP(A1:E10;"Weight";A13:E14)</p>
  341.    <p class="Paragraph">In row 14, under Age, enter 7, 8, 9, etc. one after the other. For each instance, the result is the standard deviation of the weight for all same-aged children whose weight we checked.</p>
  342.    <p class="Head2"><help:help-id value="HID_FUNC_DBSUMME" xmlns:help="http://openoffice.org/2000/help"/><a name="dbsumme"/>DSUM <help:key-word value="DSUM" tag="kw66856_5" xmlns:help="http://openoffice.org/2000/help"/></p>
  343.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DSUM returns the total of all cells in a database field in all rows (records) that match the specified search criteria.</help:help-text></p>
  344.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  345.    <p class="Head3">Syntax</p>
  346.    <p class="Paragraph">DSUM(Database; Database Field; Search Criteria)</p>
  347.    <p class="Head3">Example</p>
  348.    <p class="Paragraph">How long is the combined distance to school of all children at Joe's birthday party who are in second grade? Enter the following formula in B16:</p>
  349.    <p class="Paragraph">=DSUM(A1:E10;"Distance to School";A13:E14)</p>
  350.    <p class="Paragraph">In row 14, under Grade, enter "2". As a result, you will see the sum of the distances to school of all the children who are in second grade, i.e. 1950.</p>
  351.    <help:embedded Id="65630" Eid="siehe" xmlns:help="http://openoffice.org/2000/help"/>
  352.    <p class="Paragraph"><help:link Id="66824" Eid="summewenn" xmlns:help="http://openoffice.org/2000/help">SUMIF</help:link>.</p>
  353.    <p class="Head2"><help:help-id value="HID_FUNC_DBVARIANZ" xmlns:help="http://openoffice.org/2000/help"/><a name="dbvarianz"/>DVAR <help:key-word value="DVAR" tag="kw66856_4" xmlns:help="http://openoffice.org/2000/help"/></p>
  354.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DVAR returns the variance of all cells of a database field in all records which match the specified search criteria.</help:help-text> The records are treated as a sample of data, we want to make a statement about all children based on "our" children (a representative result cannot e obtained from a sample popuplation of less than one thousand).</p>
  355.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  356.    <p class="Head3">Syntax</p>
  357.    <p class="Paragraph">DVAR(Database; Database Field; Search Criteria)</p>
  358.    <p class="Head3">Example</p>
  359.    <p class="Paragraph">What is the variance of the weight of all children of the same age? Enter the following formula in B16:</p>
  360.    <p class="Paragraph">=DVAR(A1:E10;"Weight";A13:E14)</p>
  361.    <p class="Paragraph">In row 14, under Age, enter 7, 8, 9, etc. one after the other. For each instance, you will see as a result the variance of the weight values for all children of this age.</p>
  362.    <p class="Head2"><help:help-id value="HID_FUNC_DBVARIANZEN" xmlns:help="http://openoffice.org/2000/help"/><a name="dbvarianzen"/>DVARP <help:key-word value="DVARP" tag="kw66856_3" xmlns:help="http://openoffice.org/2000/help"/></p>
  363.    <p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">DVARP calculates the variance of all values in the cells of a database field in all records which match the specified search criteria.</help:help-text> The records are treated as an entire population, i.e. we want to make a statement about our children and not about children whose data has not been collected.</p>
  364.    <help:embedded Id="65630" Eid="regulaer" xmlns:help="http://openoffice.org/2000/help"/>
  365.    <p class="Head3">Syntax</p>
  366.    <p class="Paragraph">DVARP(Database; Database Field; Search Criteria)</p>
  367.    <p class="Head3">Example</p>
  368.    <p class="Paragraph">What is the variance of the weight for all children of the same age at Joe's birthday party? Enter the following formula in B16:</p>
  369.    <p class="Paragraph">=DVARP(A1:E10;"Weight";A13:E14)</p>
  370.    <p class="Paragraph">In row 14, under Age, enter 7, 8, 9, etc. one after the other. For each instance, the variance of the weight values for all children of this age attending Joe's birthday party appears.</p>
  371.   </body></html>